package com.capgemini.simpleappblanche.controller.home;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author jcdorchies
 * 
 */
@Controller
@RequestMapping()
public class WelcomeController {

	/**
	 * show welcome page
	 * @param model model
	 * @return view
	 */
	@RequestMapping(value={"/welcome"},method = { RequestMethod.GET })
	public String welcome(Model model) {
		
		//Initialize 1st screen
		
		return "welcome";
	}
	
	/**
	 * show welcome page for logged user
	 * @param model model
	 * @return view
	 */
	@RequestMapping(value={"/dashboard"},method = { RequestMethod.GET })
	public String welcomeLogged(Model model) {
		
		//Initialize 1st screen for logged user
		
		return "dashboard";
	}
}
